<?php
if (isset($_GET['act'])) {
    $act = $_GET['act'];
} else {
    $act = "home";
}

$home_uri = 'http://'.$_SERVER['HTTP_HOST'];
?>

<div class="header">
    <a href="<?php echo APPLICATION_URL; ?>"><img class="logo" alt="logo" src="<?=APPLICATION_URL?>images/logo.jpg"/></a>

    <ul>
        <li>
            <?php
            $sql_catalog = $db->select("select * from catalog limit 1");
            $co_catalog = $db->fetch($sql_catalog);
            if ($co_catalog['typeshow'] == 1)
                $link_pdf = $co_catalog['linkto'];
            else
                $link_pdf = APPLICATION_URL . "catalog/" . $co_catalog['filename'];
            ?>
            <img class="download-icon" alt="logo" src="<?=APPLICATION_URL?>images/download-icon.gif">
            <a href="<?php echo $link_pdf; ?>" class="download-link"><?php __('Download catalogue'); ?></a>
        </li>
        <li class="line">|</li>
        <li><a href="javascript:void(0)" onclick="changeLang('vn');" class="lang vn">VN</a><a href="javascript:void(0)" onclick="changeLang('en');" class="lang en">EN</a></li>
    </ul>

</div>
<div class="nav">
    <ul>
        <li class="first <?= $homeClass ?>"><a href="<?=APPLICATION_URL?>home.html"><?=$co_home['titlemenu'.$hg]?></a></li>
        <li class="line"></li>
        <li class="<?= $aboutClass ?>"><a href="<?=APPLICATION_URL?>intro.html"><?=$co_about['titlemenu'.$hg]?></a>
			<ul>
				<?php
				$re_list = $db->select("select * from about_item order by orderId asc ");
				while($tt_list = $db->fetch($re_list))
				{					
				?>
				<li>
					<a href="<?=APPLICATION_URL?>intro/<?=$tt_list['titleurl']?>.html"><?=$tt_list['title'.$hg]?></a>
					<div class="clear"></div>
				</li>		
				<?php
				}
				?>
			</ul>
		</li>
        <li class="line"></li>
        <li class="<?= $newsClass ?>"><a href="<?=APPLICATION_URL?>news.html"><?=$co_news['titlemenu'.$hg]?></a></li>
        <li class="line"></li>
        <li class="<?= $productClass ?>"><a href="<?=APPLICATION_URL?>product.html"><?=$co_product['titlemenu'.$hg]?></a></li>
        <li class="line"></li>

        <li><a href="<?=APPLICATION_URL?>buy-where.html"><?=$co_buy_where['titlemenu'.$hg]?></a></li>

        <li class="line"></li>
        <li><a href="<?=APPLICATION_URL?>questions.html"><?=$co_faq['titlemenu'.$hg]?></a></li>
        <li class="line"></li>
        <li class="<?=$tipClass?>"><a href="<?=APPLICATION_URL?>tip.html"><?=$co_tip['titlemenu'.$hg]?></a></li>
        <li class="line"></li>
        <li><a href="<?=APPLICATION_URL?>media.html">Media</a></li>
        <li class="line"></li>
        <li class="<?= $contactClass ?>"><a href="<?=APPLICATION_URL?>contact.html"><?=$co_contact['titlemenu'.$hg]?></a></li>
        <li class="line"></li>
        <li class="last">
            <img src="<?=APPLICATION_URL?>images/header-phone.jpg" alt="phone"/>
            0937 623 024
        </li>
    </ul>
</div>
<?php
if ($act == 'home')
    require_once 'slider.php';
?>